home *** CD-ROM | disk | FTP | other *** search
- hi
-
- just a quicky... one of the functions that the DEU source code takes a string,
- and some parameters in the same way as printf (but with an extra one at the
- beginning). I want to take these parameters, and combine them into a single
- string (using sprintf) but I dont have any idea how to do this...
-
- Q: is this valid? or how else can I do it?
-
- void ProgError(int x, char *pattern, ...)
- {
- char temp[100];
-
- sprintf(temp,pattern,...);
-
- }
-
- Do you see what I'm trying to do? Will I have to effectively write sprintf
- myself?
-
- Anthony
-
-